package ACM.meituan2;

/**
 * @Author wwk
 * @DATE 2022/8/27 17:05
 */
import java.util.*;

public class forth {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int b = scanner.nextInt();
        int[] nums1 = new int[n];
        for (int i = 0; i < n; i ++){
            nums1[i] = scanner.nextInt();
        }
        int[] nums2 = new int[n];

        for (int i = 0; i < n; i ++){
            nums2[i] = scanner.nextInt();
        }
        System.out.println(-1);
    }
}
